define(['egis'], function (egis) {
    Window.deserializer = Window.deserializer || new egis.core.Deserializer();
    Window.container = Window.container || {};
    dsBridge.register('create_GFeature', function (sourceId, content) {
        var gFeature = Window.deserializer.createJsInstance(JSON.parse(content));
        gFeature.id = sourceId;
        Window.container[sourceId] = gFeature;
    });

    dsBridge.register('GFeature_setGeometry', function (sourceId, content) {
        var gFeature = Window.container[sourceId];
        var geometry = Window.deserializer.createJsInstance(JSON.parse(content));
        gFeature.setGeometry(geometry);
    });
/*
    dsBridge.register('GFeature_setSymbol', function (sourceId, content) {
        var element = Window.container[sourceId];
        var symbol = Window.deserializer.createJsInstance(content);
        element.symbol = symbol;
    });*/
})